Post

Replies

Boosts

Views

Activity

How to get VoiceOver audible output when mouse / trackpad pointer hovers over screen elements
I have a Mac application.I am in a process to make it compatible with VoiceOver functionality of macOS.When I navigate through the screen elements of my app using keyboard, I get proper audible output using VoiceOver functionality.I would like to know, how can I get audible output when mouse / trackpad pointer hovers over screen elements of my app.Can anyone please assist me.
0
0
344
Jan ’20
VoiceOver focus does not move with keyboard focus while navigating through Mac app menu items
I have a Mac application of type agent (LSUIElement is true).When app is executed, app icon is shown in top menu bar. On clicking the app icon in menu bar, menu items (NSMenuItem) are displayed.Please find below my observations on following two scenarios:1. App is executed without assigning tooltip to menu items:While navigating using keyboard, VoiceOver focus remains on menu item on which there is a keyboard focus.This is working as expected.2. App is executed after assigning tooltip to menu items (using setTooltip method):While navigating through menu items using keyboard, suddenly VoiceOver focus is shifted to some other UI element on screen (e.g. Finder window, Safari window, etc) or VoiceOver focus does not move with keyboard focus.I observed that, this happens when keyboard focus is kept on a menu item for some time (e.g. around 4-5 seconds) before navigating to other menu item.This is not working as expected.Ideally, VoiceOver focus should move with keyboard focus even if tooltip is assigned to menu items.Can anyone please tell me how to fix this.
0
0
1.5k
Jan ’20
How to detect VoiceOver status changes in Mac app
I have a Mac application.I want to enable / disable some app functionality depending upon if VoiceOver has been enabled or not.I know that I can detect if VoiceOver has been enabled / disabled using [[NSWorkspace sharedWorkspace] isVoiceOverEnabled].Apart from this, I want to register for a notification to detect the changes in VoiceOver status (enabled / disabled).I found that, this can be achieved in iOS by registering to UIAccessibilityVoiceOverStatusDidChangeNotification notification.But, I did not find similar notification for macOS.Can anyone please let me know how can I achieve this in macOS.
1
0
944
Feb ’20
Handler of showPreferencesForExtensionWithIdentifier method getting called multiple times
I have a Mac application.This app contains safari app extension.If safari app extension has not been enabled already, following method is executed to show safari preferences screen (Extensions tab) to user.[SFSafariApplication showPreferencesForExtensionWithIdentifier:<SafariExtensionIdentifier> completionHandler:^(NSError *error) { [self performSelectorOnMainThread:@selector(showAlertToEnableExtension) withObject:nil waitUntilDone:NO];}];- (void)showAlertToEnableExtension { NSAlert *alert = [[[NSAlert alloc] init] autorelease]; [alert setMessageText:@"Please enable safari app extension"]; [alert runModal];}The alert (that notifies user to enable extension) is popping up multiple times.Can anyone please let me know why do I get multiple alert popups.
0
0
331
Mar ’20
VoiceOver accessibilityValueDescription does not work properly in NSTableView
I have a Mac application.I have implemented VoiceOver accessibility text for NSTableView cell as follows in viewForTableColumn delegate method:cell.textField.accessibilityValueDescription = <Some_Text>;I get VoiceOver audible output as <Some_Text> only when user navigates to the cell from different column (using Left / Right arrow keys).But, when user navigates to the cell from same column (using Left / Right arrow keys), I get VoiceOver audible output as the actual text value of cell.Can anyone please let me know how can I get the proper audible output when user navigates to the cell from same column.
1
0
448
Mar ’20
Safari app extension does not appear in safari preferences extensions tab after installing pkg
I have a Mac application of type agent (i.e. LSUIElement is true) This application contains a safari app extension. I create pkg installer of my application. This pkg installer is responsible for installing the application and launch it as soon as it gets installed. When I run pkg installer, my application gets installed and launched successfully. But, initially safari app extension does not appear in safari preferences extensions tab. When I quit the application and re-launch it, I can see safari app extension in safari preferences extensions tab. Can anyone please assist on this issue.
1
0
574
Oct ’20
osascript command requires admin credentials in macOS Big Sur
We have a macOS application. The pkg installer of this app contains a postinstall script. In this script, the shortcut (link) for the app is created using "ln" command. And following "osascript" command is used to refresh the shortcut link so that Finder shows proper app icon on link. osascript -e "tell application \"Finder\" to update posix file \"/Applications/App_Directory/App_Name_Link\"" osascript command does not require admin credentials on macOS versions prior to Big Sur. When app installer is executed on macOS Big Sur, osascript command asks for admin credentials with message "Finder wants to make changes". This is causing issue during silent installation (using installer command) of my app on macOS Big Sur as it prompts for admin credentials. Can you please let us know how to avoid admin credentials prompt while executing above osascript command.
0
0
652
May ’21
Notarization of pkg fails intermittently
We have a macOS application. We have implemented a bash script to notarize the installer package (.pkg) of our Mac app. Sometimes it works successfully. But, intermittently it fails while checking the status of notarization. Please find below the commands used in bash script: Command: xcrun altool --notarize-app --primary-bundle-id --username --password <App_Specific_Password> --file <PKG_File_Path> Output: No errors uploading <PKG_File_Path>. RequestUUID = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Command: xcrun altool --notarization-info -u -p <App_Specific_Password> Error: 2021-06-10 12:33:48.300 altool[2163:13708] *** Error: Failed to get notarization info. 2021-06-10 12:33:48.300 altool[2163:13708] *** Error: code 1519 (Apple Services operation failed. Could not find the RequestUUID.) Though correct RequestUUID is passed to the command, it fails with above mentioned error.
3
0
700
Jun ’21
How to open the url in the new window of default browser
I have a macOS application. I need to open an url (e.g. https://www.google.com) in the new window of default browser. I tried to use the openURL method of NSWorkspace class. It opens the url in the new tab in default browser, but I did not find a way to open the url in new window. Also, I tried to use NSAppleScript's executeAndReturnError method with following script: tell application "Safari" \n activate \n set d to make new document \n set URL of d to "https://www.google.com" \n end tell It opens the url in the new window of Safari. I cannot use it for opening the url in default browser. I wanted to know if there is a way to open the url in the new window of default browser.
0
0
371
Oct ’21
App not launching after completing installation
I have a macOS application. I have also created the pkg installer to install my app. The postflight script in the pkg installer has following code for launching the app as soon as installation finishes. sudo -u $USER open "/Applications/Test/Test App.app" This is working fine on macOS Mojave (10.14), Catalina (10.15) and Monterey (12.0). But, on macOS Big Sur (11.x) it is failing intermittently. This means sometimes app gets launched successfully, but sometimes app is not launched.
0
0
289
Dec ’21